package com.mezz.bones.im.logic.domain.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author mezz
 * @since 2024-12-20
 *
 * IM对象
 *
 * 用户
 * 供应商主体信息 供应商客服信息
 * 平台主体信息(默认ID=0 默认昵称 默认头像) 平台客服信息
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "chat_user", autoResultMap = true)
@ApiModel(value="ChatUser对象")
public class ChatUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty("用户端类型 1user-用户 srm-供应商 saas-平台端 用于token校验")
    private String userType;

    @ApiModelProperty(value = "头像信息")
    private String avatar;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "简介")
    private String profile;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "1已删 0否")
    private Integer isDel;
}
